﻿<?php
        $banner = M('banner')->where('id >1')->select();
$bg = M('bg')->find(1);
$logo = M('logo')->find(1);
$content = M('uedit')->find(1);
$video = M('video')->find(1);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>永乐国际-永往直前乐在其中</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit">
<link rel="shortcut icon" href="favicon.ico"/>
    <link href="__PUBLIC__/home/css/newcommon.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/home/css/windowmask.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/home/css/bacwar.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/video/css/video-js.css" rel="stylesheet">
    <!-- If you'd like to support IE8 -->
    <script src="__PUBLIC__/video/js/videojs-ie8.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/home/js/jquery-1.11.3.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/home/js/jqueryrotate.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/home/js/public.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/home/js/page.common.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/home/js/jpages.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/home/js/bacwar.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/home/js/validate.methods.js"></script>
    <style type="text/css">
       /*.nav22 li{
            display: block;
            float: left;
            width: 91px;
       }


        .nav22 a{
            color: white;
            font-size: 14px;
        }*/

       .game-banner{
           position: relative;
           height: 590px;
           background: url(__PUBLIC__/{$bg.bgurl}) no-repeat center 0 #1B1213;
           z-index: 1;
       }
        .nav22 {
            background: url(__PUBLIC__/home/images/nav-bg.png) no-repeat 0px 0px;
            width: 653px;
            height: 51px;
            right: 0px;
            bottom: 0px;
            float: right;
            display: block;
            
        }
        ul {

            margin: 0px;
            padding: 0px;
        }
        ul, menu, dir {
            display: block;
            list-style-type: disc;
            -webkit-margin-before: 1em;
            -webkit-margin-after: 1em;
            -webkit-margin-start: 0px;
            -webkit-margin-end: 0px;
            /*-webkit-padding-start: 40px;*/
        }
        .nav22 li {
            float: left;
        }
      
        li {
            list-style: none;
        }
        .nav22 li.active a {
            background: url(__PUBLIC__/home/images/nav-hover.png);
            border-radius: 4px;
            color: rgb(250, 239, 172);
            -moz-border-radius: 4px;
            -webkit-border-radius: 4px;
        }

      /* div.newfooter .f_cont{background:url(__PUBLIC__/{$logo.logo}) no-repeat 22px center; padding:20px 0 20px 140px; height:160px; color:#7d7d7d;}*/
        
        .nav22 li a {
            width: 91px;
            height: 51px;
            text-align: center;
            color: rgb(255, 255, 255);
            line-height: 51px;
            font-size: 15px;
            display: block;
        }
    </style>
</head>
<body>
<div class="ns_container">
    <!-- ===============公共的参数=============== -->
    <div id="popwindow" style="position:absolute;z-index:1000;"></div>
<div id="checklogin" attr-type="-1"></div>



<div style="width:100%;height:130px;background:url(__PUBLIC__/home/images/new_topbg.png)">
    <a href="{$logo.url}"><div style="float:left;margin-top:30px;margin-left:25%;"><img src="__PUBLIC__/{$logo.logo}"></div></a>
    <div style="float:left;margin-top:66px;margin-left:30px;width:653px;height:51px;">
        <ul class="nav22">
            <li class="active"><a href="#" target="_blank">官网首页</a></li>
            <foreach name="banner" item="v">
                <li><a href="{$v.url}" target="_blank">{$v.title}</a></li>
            </foreach>
          <!--<li class="active"><a href="https://www.6122bb.com/" target="_blank">官网首页</a></li>
          <li><a href="https://www.6122bb.com/member/member?type=returnSavaMember" target="_blank">新葡京开户</a></li>
          <li><a href="http://paupaupapapapappayq1.com/" target="_blank">快速充值</a></li>
          <li><a href="http://www.dz6122.com/" target="_blank">电子金管家</a></li>
          <li><a href="https://www.6122bb.com/jsp/member/space.jsp" target="_blank">优惠活动</a></li>
          <li><a href="https://www.6122bb.com/jsp/member/space.jsp" target="_blank">优惠活动办理</a></li>
          <li><a href="https://messenger.providesupport.com/messenger/1l6jtzaacuwly1rx654wuhhhgi.html" target="_blank">在线客服</a></li>-->

        </ul>
    </div>
</div>

<!-- 添加mask -->
<div id="masktop" class="masktop"></div>


    
<div class="game-banner">
	<!-- <div class="wrap">
		<div class="countdown">
                 <p>比赛已结束</p>
            
		</div>
		<div class="box-apply">
			<div class="title">已报名<strong>0</strong>人</div>
			<div class="list-apply" id="listApply">
				<ul class="clearfix">
				</ul>
			</div>
		</div>
	</div> -->
</div>
    <if condition="$bg.isplay eq 1">
        <div style="wdith:20%;height:30px;background:#111111;">
            <div style="wdith:30%;height:30px;float:left;">
                <span style="color:white;display:block;margin-right:10px;float:right;">最新公告:</span>
                <img src="__PUBLIC__/home/images/laba.png" style="height:30px;display:block;float:right;margin-left:50px;">
            </div>
            <div style="wdith:70%;height:30px;float:left;">
                <marquee align="left" behavior="scroll" bgcolor="#111111" direction="left" height="30" width="1000" loop="-1" scrollamount="10" scrolldelay="50" >
                <font color="white">{$bg.content}</font>
                </marquee>
            </div>
        </div>
    </if>
<!-- 富文本区域 -->
<div style="width:100%;background:#111111;">
   <center>
       <div>{$content.content}</div>
   </center>
</div>
<if condition="$video.isplayradio eq 1">
  <div>
    <audio src="__PUBLIC__/home/music.mp3" autoplay="autoplay" >
            Your browser does not support the audio element.
    </audio>
</div>  
</if>


<!-- footer start -->
<div class="newfooter">
    <div class="wrap">
        <div class="f_cont">
            <p class="links">
                <a href="javascript:;">首页</a>
                <a href="javascript:;">联系我们</a>
                <a href="javascript:;">网站实力</a>
                <a href="javascript:;">下载中心</a>
                <a href="javascript:;">新手指南</a>
                <a href="javascript:;">最新公告</a>                
                <a href="javascript:;">代理合作</a>
                <a target="_blank" href="javascript:;">永乐论坛</a>  
                <a href="javascript:;">隐私安全</a>
                <a class="last" href="javascript:;">免责声明</a>            
            </p>
            <p class="cr">Copyright &copy; 2006-2017 永乐国际官方网站 Online Game. All rights reserved.</p>
            <p class="fr">
               <!--  <a href="http://www.hibet.cc/index.php?m=content&c=index&a=cert&id=8" target="_blank" class="hb"></a> -->
            </p>
        </div>
    </div>
</div>
<!-- footer end -->

<!-- 底部视频固定区域 -->
    <if condition="$video.isplayvideo eq 1">
<div style="width:100%;" >
   <div style="position:fixed;bottom:0;width:350px;height:250px;z-index:999999;right:0;display:block;" id="showvideo">
       <div style="width:100%;height:30px;background:white;">
           <div style="width:90%;height:30px;float:left;">
               <span style="font-size:15px;display:bolck;margin-top:5px;margin-left:10px;">{$video.videotitle}</span>
           </div>
           <div style="width:10%;height:30px;float:left;">
               <div style="margin-top:5px;" id="closevideo">
                 <a href="javascript:;">关闭</a>  
               </div>
           </div>
       </div>
       <!-- 视频部分 -->

       <div>
           <video id="my-video" class="video-js vjs-big-play-centered" controls preload="auto" width="350" height="220"
          poster="__PUBLIC__/{$video.videoimgurl}" data-setup="{}">
            <source src="{$video.videodataurl}" type="video/mp4">
            <p class="vjs-no-js">
              To view this video please enable JavaScript, and consider upgrading to a web browser that
              <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
            </p>
          </video>
          <script src="__PUBLIC__/video/js/video.min.js"></script> 
        //   <script type="text/javascript">
        //  var myPlayer = videojs('my-video');
        //  videojs("my-video").ready(function(){
        //      var myPlayer = this;
        //      myPlayer.play();
        //  });
        // </script>
       </div>


   </div> 
</div>
    </if>
<script type="text/javascript">
    $("#closevideo").on("click",function(){
         var myPlayer = videojs('my-video');
         videojs("my-video").ready(function(){
             var myPlayer = this;
             myPlayer.pause();
           });   
        
        $("#showvideo").css("display","none");
    })
</script>
</body>
</html>